export function formateDate(date) {
    const dateObj = new Date(Number(date))
    const year = dateObj.getFullYear()
    const month = dateObj.getMonth() + 1 < 10 ? '0' + (dateObj.getMonth() + 1) : dateObj.getMonth() + 1
    const day = dateObj.getDate() < 10? '0' + dateObj.getDate() : dateObj.getDate()
    return `${year}-${month}-${day}`
  }